Ext.define("App.projectorder.view.ProjectOrderEditorWindow", {
    extend: 'Extend.window.FormWindow',
    alias: 'widget.ProjectOrderEditorWindow',
    entity: 'entity',
    requires: ['App.project.field.ProjectTypeComboBox', 'App.project.field.SiteComboBox'],
    url: 'projectorder/save',
    resetBySave: false,
    listeners: {},
    config: {
        window: {
            height: 340,
            width: 700
        }
    },
    defaults: {
        labelWidth: 120,
        columnWidth: 0.5,
        maxLength: 128,
        readOnly: true
    },
    items: [{
        xtype: 'hidden',
        name: 'id'
    }, {
        xtype: 'hidden',
        name: 'organization.id'
    }, {
        xtype: 'hidden',
        name: 'creator'
    }, {
        xtype: 'hidden',
        name: 'cdt'
    }, {
        xtype: 'textfield',
        fieldLabel: 'PO号',
        name: 'po'
    }, {
        xtype: 'textfield',
        fieldLabel: 'PO名称',
        name: 'name'
    }, {
        xtype: 'textfield',
        fieldLabel: '内部PO号',
        name: 'innerPo'
    }, {
        xtype: 'textfield',
        fieldLabel: '合同类型',
        name: 'contractType'
    }, {
        xtype: 'textfield',
        fieldLabel: '实施du',
        name: 'du'
    }, {
        xtype: 'textfield',
        fieldLabel: '华为PDU',
        name: 'parent.name'
    }, {
        xtype: 'SiteComboBox',
        fieldLabel: '在岸/离岸',
        name: 'onSite'
    }, {
        xtype: 'textfield',
        fieldLabel: '服务目录',
        name: 'serviceDirectory'
    }, {
        xtype: 'textfield',
        fieldLabel: '实施地域',
        name: 'effectArea'
    }, {
        xtype: 'textfield',
        fieldLabel: '交付部',
        name: 'deliveryDepartment'
    }, {
        xtype: 'textfield',
        fieldLabel: '交付部经理',
        name: 'deliveryManager'
    }, {
        xtype: 'textfield',
        fieldLabel: '华为合作代表',
        name: 'huaweiRepresentative',
        readOnly: false
    },{
        xtype: 'datefield',
        fieldLabel: '立项时间',
        name: 'startDate',
        format: 'Y-m-d',
        editable: false
    }, {
        xtype: 'numberfield',
        fieldLabel: '预计总工作量(人天)',
        name: 'planTotalQuantity'
    }]
});
